import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
// createApp(App).mount('#app')

// 后来新增的
import router from './router'
import Antd from 'ant-design-vue'   // 引入 ant-design-vue方便使用对应组件
import 'ant-design-vue/dist/reset.css'  // 引入 ant-design-vue样式（重置）文件-----------------------------------------这一行好像写不写都可以
import zhCN from 'ant-design-vue/es/locale/zh_CN'   // 引入 ant-design-vue中文语言包
import { createPinia } from 'pinia'
const pinia = createPinia()

import { routeStore } from '@/store/adminLoginRouteMenu.js' // 这个是我的store里面的方法路径

const app = createApp(App)
app.use(pinia)

let routeStores = routeStore()
const addRouter = () => {
    routeStores.addRouter()
}
addRouter()

app.use(router)
app.use(Antd, { locale: zhCN })
// app.use(store)
app.mount('#app')
